package com.qingsong.feign;

import com.qingsong.entity.Course;
import com.qingsong.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author qingsong
 */
@FeignClient("ml-course")
public interface CourseFeign {

    @GetMapping("/api/v1/course/select/{id}")
    Result<Course> select(@PathVariable("id") Long id);
}